<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Ver 1.4 2007-02-01 TP --> 
<xsl:template match="IMPORT">
<xsl:for-each select="BGDATA">
Date;Time;Bg Value;Flags;Insulin 1;Insulin 2;Insulin 3;Carbs;Event;Bg Device<br/>
<xsl:for-each select="BG">
<xsl:choose>
<xsl:when test = "@Ctrl>0 or @Ctrl='?'" ></xsl:when>
<xsl:otherwise>
<xsl:value-of select="@Dt" />;<xsl:value-of select="@Tm" />;<xsl:value-of select="@Val" />;<xsl:value-of select="@Flg" />;<xsl:value-of select="@Ins1" />;<xsl:value-of select="@Ins2" />;<xsl:value-of select="@Ins3" />;<xsl:value-of select="@Carb" />;<xsl:value-of select="@Evt" />;<xsl:value-of select="@D" />
<br/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>